package com.xhwl.logistics.strategy.impl;

import com.xhwl.common.exception.BusinessException;
import com.xhwl.logistics.bo.cent.VehicleIntegratedConfigBO;
import com.xhwl.logistics.strategy.IVehicleParkingLotStatisticsHandler;
import org.springframework.scheduling.annotation.Async;

//@Service
public class VehicleParkingLotNothingStatisticsHandlerImpl implements IVehicleParkingLotStatisticsHandler {

    @Async("threadPoolTaskExecutorForSchedule")
    @Override
    public void statisticsCardAccessRecordRecordToBi(VehicleIntegratedConfigBO vehicleIntegratedConfigBO) {
        throw new BusinessException("该项目下的车场暂不支持车卡进出记录的汇总操作，项目id：" + vehicleIntegratedConfigBO.getVehicleSystemInfoBO().getProjectId());
    }

    @Async("threadPoolTaskExecutorForSchedule")
    @Override
    public void statisticsCarportRecordToBi(VehicleIntegratedConfigBO vehicleIntegratedConfigBO) {
        throw new BusinessException("该项目下的车场暂不支持车位数量的汇总操作，项目id：" + vehicleIntegratedConfigBO.getVehicleSystemInfoBO().getProjectId());
    }

    @Async("threadPoolTaskExecutorForSchedule")
    @Override
    public void statisticsLocationAccessRecordToBi(VehicleIntegratedConfigBO vehicleIntegratedConfigBO) {
        throw new BusinessException("该项目下的车场暂不支持地点区域车辆进出记录的汇总操作，项目id：" + vehicleIntegratedConfigBO.getVehicleSystemInfoBO().getProjectId());
    }

    @Async("threadPoolTaskExecutorForSchedule")
    @Override
    public void statisticsCardPayRecordToBi(VehicleIntegratedConfigBO vehicleIntegratedConfigBO) {
        throw new BusinessException("该项目下的车场暂不支持车卡类型支付记录的汇总操作，项目id：" + vehicleIntegratedConfigBO.getVehicleSystemInfoBO().getProjectId());
    }
}
